/**
 * 
 */
package com.desitek.thunder.dao.hibernate;

import java.util.List;
import java.util.Map;

import org.hibernate.criterion.DetachedCriteria;
import org.hibernate.criterion.Property;
import org.springframework.stereotype.Repository;

import com.desitek.thunder.dao.BrandDao;
import com.desitek.thunder.dao.ObjectNotFoundException;
import com.desitek.thunder.model.Brand;

/**
 * @author dt
 *
 */
@Repository("brandDao")
public class BrandDaoImpl extends GenericDaoHibernate<Brand, Integer> implements
		BrandDao {
	
	public BrandDaoImpl(){
		super(Brand.class);
	}

	public Brand findByBrandName(String brandName)
			throws ObjectNotFoundException {
		DetachedCriteria criteria = DetachedCriteria.forClass(Brand.class).add(Property.forName("name").isNotNull());
		List<Brand> brands =  getHibernateTemplate().findByCriteria(criteria);
		return null;
	}

	 
	 

}
